﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using System.Threading;


namespace NotMyBoom
{
    public class MyLabel : MyWindow
    {
        public MyLabel(string Text,Vector2 TopLeft, int Width, int Height) 
        {
            this.text = Text;
            this.TopLeft = new Vector2(TopLeft.X,TopLeft.Y);
            this.Width = Width;
            this.Height = Height;
            this.Color = Color.Blue;
            this.Text = "";
            Size = new Vector2(Width,Height);
        }

        public override void Init(ContentManager content)
        {
            font = content.Load<SpriteFont>(@"font/font1");
            base.Init(content);
        }
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.DrawString(font, text, new Vector2(TopLeft.X + 5, TopLeft.Y + 4),
                color, 0, Vector2.Zero, 1.0f, SpriteEffects.None, 0.5f);
        }
    }
}
